package com.copa.gameStore.client;

import com.copa.gameStore.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("game-user")
public interface UserClient {

//    @GetMapping("userInfo")
//    ResponseVo<UserVo> userInfo(@RequestParam("authorization") String authorization);

    @GetMapping("findByUsername")
    User findByUsername(@RequestParam("username") String username);

}
